package com.luke.star.persist.po;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import lombok.Data;

@Data
public class StTask {
    private String id;
    
    @NotBlank(message="任务名称不能为空")
    private String taskName;

    private String state;
    
    @NotNull(message="期望星星数不能为空")
    private Integer expectNum;

    private Integer starNum;

    @NotBlank(message="任务描述不能为空")
	@Size(min = 1, max = 1000,message="任务描述字数不能超过1000个字")
    private String taskDesc;

    private String starType;

    private Date createTime;

    private Date updateTime;

    private String userid;

    private Integer weight;

    private String taskType;
    
}